<template>
  <div class="container">
    <router-view></router-view>
    <div class="index">
      <Header />
      <div class="main">
        <div class="main-top">
          <div class="con-menu" @click="lecture()">
            <div class="menu-img">
              <img src="../../static/img/shouke.png" alt="">
            </div>
            <div class="menu-item">
              授课
            </div>
          </div>
          <div class="con-menu mr0"  @click="train()">
            <div class="menu-img">
              <img src="../../static/img/peixun.png" alt="">
            </div>
            <div class="menu-item">
              培训
            </div>
          </div>
        </div>
        <div class="main-bottom"  >
          <div class="con-menu"  @click="message()">
            <div class="menu-img">
              <img src="../../static/img/xiaoxi.png" alt="">
            </div>
            <div class="menu-item">
              消息
            </div>
          </div>
          <div class="con-menu2"   @click="my()">
            <div class="menu-img">
              <img src="../../static/img/wode.png" alt="">
            </div>
            <div class="menu-item">
              我的
            </div>
          </div>
          <div class="con-menu3"  @click="feedback()">
            <div class="menu-img">
              <img src="../../static/img/fankui.png" alt="">
            </div>
            <div class="menu-item">
              反馈
            </div>
          </div>
        </div>
      </div>
    </div>
    <Copyright />
  </div>
</template>

<script>
import Header from '../components/header.vue';
import Copyright from '../components/copyright.vue';
export default {
  data() {
    return {};
  },
  created() {
  },
  methods: {
    lecture(){
      this.$router.push("/lecture")
    },
    train(){
      this.$router.push("/train")
    },
    message(){
      this.$router.push("/msglist")
    },
    my(){
      this.$router.push("/my")
    },
    feedback(){
      this.$router.push("/feedback")
    }
  },
  components:{Header,Copyright}
};
</script>

<style lang="scss" scoped>
.container {
  width: 100%;
  height: 100vh;
  background: url(../../static/img/bg.png) no-repeat center;
  background-size: 100% 100%;
}
.index{
  width: 100%;
  height: 100%;
  position: relative;
  .main{
    margin-top: 180px;
     .main-top{
      width: 820px;
      margin: 0 auto;
      display: flex;
      flex-wrap: wrap;
       justify-content: space-between;
       .mr0{ margin-right: 0px;}
      .con-menu{
        width: 400px;
        height: 224px;
        background: #FFFFFF;
        opacity: 1;
        border-radius: 40px;
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        cursor: pointer;
        .menu-item{
          font-size: 50px;
          line-height: 60px;
          color: #222222;
          opacity: 1;
        }
      }
    }
    .main-bottom{
      width: 820px;
      margin: 24px auto;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      .con-menu{
        width: 274px;
        height: 194px;
        background: #FFFFFF;
        opacity: 1;
        border-radius: 40px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        .menu-item{
          font-size: 40px;
          line-height: 48px;
          color: #222222;
          opacity: 1;
        }
      }

      .con-menu2{
        width: 280px;
        height: 194px;
        background: #FFFFFF;
        opacity: 1;
        border-radius: 40px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        .menu-item{
          font-size: 40px;
          line-height: 48px;
          color: #222222;
          opacity: 1;
        }
      }
      .con-menu3{
        width: 220px;
        height: 194px;
        background: #FFFFFF;
        opacity: 1;
        border-radius: 40px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        .menu-item{
          font-size: 40px;
          line-height: 48px;
          color: #222222;
          opacity: 1;
        }
      }
    }
  }

}
</style>
